package com.web.my12306.service;

import com.web.my12306.pojo.Orders;
import com.web.my12306.pojo.Seat;

import java.util.List;

public interface OrderService
{
    //按订单id查看订单详情
    /***
     * 黄逸9.12
     ***/
     Orders queryByOid(int oid);

    /***
     * 黄逸9.13
     ***/
    //生成订单
    void add(int uid,Seat seat);

    //按用户查看订单
    List<Orders> getAll(int uid);

    List<Orders> getByUserPage(int uid,int index,int num);

    /**
     * 取消订单
     * 郭明亮
     */
    boolean cancelOrder(int oid);
    boolean pay(int oid);
    Orders print(int oid);
}
